<div id="paging">
	<div align="right">
		{if $is_coach eq '0'}
		<!--label>Become a Coach :</label> <input type="radio" name="user_type" value="1" onclick="coach_game()" /-->
		<a class="button" href="coach_game_update.php?profile=Y"><span>Become a Coach</span></a>
		{/if}
		{if $is_partner eq '0'}
		<a class="button" href="training_partner_game_update.php?profile=Y">Become Training Partner</a>
		<!--label>Become a Training Partner :</label> <input type="radio" name="user_type" value="3" onclick="tp_game()"/-->
		{/if} 
	</div>
	<div class="content">	
		
		{* Start loading Tabs *}
		{include file='user_tabs.tpl' active_tab='cashier'}
		{* End loading Tabs *}
		
		<div class="clear"></div>
		<div class="tabular-content"> 
			<div class="total-message"><strong>Total Points : {$totalPoints}</strong>&nbsp;&nbsp;</div> 
			<div class="tab_sub">
            	<ul>
					<li><a id="cashierPanel" href="javascript:void(0)" >Deposit Points</a></li>
                	<li><a id="historyPanel" href="javascript:void(0)" class="active" >Transaction History</a></li>
                </ul>
			</div>
			{literal}
			<script>
				jQuery(function () {
						//("div.tabs > div:gt(0)").hide();
						jQuery("div.tab_sub ul a:not(:first)").addClass('active');

						jQuery('div.tab_sub ul a').click(function () {
							jQuery('div.tab_sub ul a').addClass('active');
							//var newDiv = "div.tab_sub > div" + jQuery(this).attr('href');
							
							jQuery(this).removeClass('active');
							
							thePanel=jQuery("#points-panel");
							jQuery.ajax({
								type:	"POST",
								url:	"cashier_panel.php",
								data:	{cashierAction:jQuery(this).attr('id')},
								success:	function( jqXHR, status) {
											result = jQuery(jqXHR);
											thePanel.html(result);
										}
							});
						  });
						  
						return false;
					});
				</script>
			{/literal}
			<div class="clear"></div>
			<div>
				<div class="profile-list">
							<table id="points-presentation-layer">
								<tr>
									<td>
										<p>
											Select an points amount below to deposit. Please ensure you will return to the NoobSkool success page for your deposit to be processed properly.
										</p>
										<br/>
										<p>
										NoobSkool legal name will display as XXXXXX once you get on PayPal. You Do not need a PayPal account to make a deposit. PayPal accepts direct credit/debit card payments. 
										</p>
										<br/>
									</td>
									<td rowspan="2" id="paypal-logo">
										<h2>100% Secure</h2>
										<div>
											<img src="./images/paypal-logo.png" />
											<br/>
											<img src="./images/cards.png" />
										</div>
									</td>
								</tr>
								<tr>
									<td id="points-panel">
										
										{php}
											$action = $this->get_template_vars('cashierAction');
											if ($action == 'cashierPanel') {
												include("cashier_buy_panel.php");
											} elseif ($action == 'historyPanel') {
												$numberOfTransactions = $this->get_template_vars('numberOfTransactions');
												include("cashier_history_panel.php");
											}
										{/php}
										{if isset($tx_status) && isset($tx_msg)}
											<div 
												{if $tx_status eq '1'}
													id="transaction_success"> 
												{else}
													id="transaction_cancelled"> 
												{/if}
												{$tx_msg}
											</div>
										{/if}
									</td>
								</tr>
							</table>						
					</div>
				</div>
				<div class="clear"></div>
		</div>
   </div>
 </div>     